execute store result score #health temp run data get entity @s data.Health
$execute store result entity @s data.Health int 1 run scoreboard players add #health temp $(value)
execute store result score #StreamBarrierSpawnerMaxHealth temp run function vs:system/game/rules/get_value {index:{id:"stream_barrier_spawner_max_health"}}
execute if score #health temp > #StreamBarrierSpawnerMaxHealth temp store result entity @s data.Health int 1 run function vs:system/game/rules/get_value {index:{id:"stream_barrier_spawner_max_health"}}
scoreboard players reset #health temp
scoreboard players reset #StreamBarrierSpawnerMaxHealth temp

function vs:system/game_ctrol/stream_barrier_spawner/force_text_update